pkgname=tlbflush
pkgver=1
pkgrel=1
arch=('i386' 'x86_64' 'aarch64')
license=('GPL')

. $LKP_SRC/lib/install.sh

build()
{
	cd "$srcdir"
	cp $(get_pkg_dir $pkgname)/${pkgname}.c .
	gcc -DFILE_SIZE=$((128*1048576)) -g -O2 "${pkgname}.c" -lpthread -o "${pkgname}"
}

package()
{
	benchmark_path="${pkgdir}/lkp/benchmarks/${pkgname}"
	mkdir -p "$benchmark_path"
	cp -af "$srcdir/${pkgname}" "$benchmark_path"
}
